<?php
namespace Api\Model;

use Think\Model;

class ShopCustomerModel extends Model
{
    protected $tableName = 'SHOP_CUSTOMER';

    protected $_validate = array(
        array('customer_name', 'require', '请输入客户名称！', self::MUST_VALIDATE),
        array('name', 'require', '请输入姓名！', self::MUST_VALIDATE),
        array('phone', 'require', '请输入电话！', self::MUST_VALIDATE),
        array('address', 'require', '请输入地址！', self::MUST_VALIDATE),
    );
    
    protected $_auto = array(
        array('create_time', 'time', 1, 'function'),
        array('update_time', 'time', 3, 'function'),
    );
}
